import messangerClient.ClientUI;
import messangerTypes.User;
import TCPClient.*;

public class TestMain
{

	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		User user = new User("Doug", "Sweeney", 0, "Password");
		try
		{
			//create the client
			TCPClient tcpClient = new TCPClient(user);
			//fire up the GUI
			ClientUI gui = new ClientUI(tcpClient, user);
	        java.awt.EventQueue.invokeLater(gui);
	        gui.setVisible(true);
	        //register the gui with the client
	        tcpClient.registerClientGUI(gui, user);
	        
		} catch (Exception e)
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
